<template>
 <div class="home">
   home
   <button @click="handleAdd">{{count}}</button>
 </div>
</template>

<script lang="ts">
export default ({
   name: 'App',
   data() {
    return {
      count:1
    }
  },
  //ts不能使用2.x语法
  methods: {
    handleAdd(){
      console.log(1);
      this.count++
    }
  },
 
});
</script>

<style>

</style>
